package com.haidong.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Configuration
@ComponentScan({"com.haidong.service"})
@PropertySource("classpath:jdbc.properties")
// 下面两个配置类返回了spring核心管理的bean,所以要Import进来
@Import({JdbcConfig.class,MyBatisConfig.class})
// 事务管理注解
@EnableTransactionManagement
public class SpringConfig {
}
